﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text.Json.Serialization;
using System.Web;

namespace WebApi_SY.Models
{
    public class sli_quality_reports
    {
    
        public int Id { get; set; }
        public int Fformid { get; set; }
        public string Fformno { get; set; }
        public int Freportid { get; set; }
        public string Frepotno { get; set; }
        public int Fpartid { get; set; }
        public string Fpartno { get; set; }
        public string Fpartname { get; set; }
        public string Fqualityrank { get; set; }
        public string Fmateril { get; set; }
        public string Fsuppliername { get; set; }
        public int Finspectionquantity { get; set; }
        public int Fprintstatus { get; set; }

        public List<sli_quality_reportsentry> Entries { get; set; } = new List<sli_quality_reportsentry>();
        //public List<sli_quality_reportsentry> Entries { get; set; } = new List<sli_quality_reportsentry>();
    }

    public class sli_quality_reportsentry
    {
        //public int sli_quality_reportId { get; set; } // 新增外键字段（对应主表Id）
        public int ID { get; set; }
        public int fformid { get; set; }
        public int freportid { get; set; }
        public int foptionid { get; set; }
        public string foptionname { get; set; }
        public string fitem { get; set; }
        public string Fno { get; set; }
        public string ftype { get; set; }
        public string ftechnialrequirement { get; set; }
        public string fmax { get; set; }
        public string fmin { get; set; }
        public int fqualitytools { get; set; }
        public string fqualitytoolsname { get; set; }
        public string factual { get; set; }
        public string fdiff { get; set; }
        public string serialnumber { get; set; }
        public string finspector { get; set; }
        public string fdate { get; set; }
        public virtual sli_quality_reports sli_quality_reports { get; set; }
    }
}   